// clang-format off

#ifndef AMIMAGEPREIVEW_H
#define AMIMAGEPREIVEW_H

#include <QMouseEvent>
#include <QWidget>

namespace Ui {
class AmImagePreivew;
}

class AmImagePreivew : public QWidget
{
    Q_OBJECT

public:
    explicit AmImagePreivew(QWidget *parent = nullptr);
    ~AmImagePreivew();

    void setPreviewImage(QPixmap picImage);

private:
    Ui::AmImagePreivew *ui;

    // QWidget interface
protected:
    void mouseReleaseEvent(QMouseEvent *event) override;
};

#endif // AMIMAGEPREIVEW_H
